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,CACEsK,aAAa,EACbnC,IAAK,GAAuB,OAApBJ,CAAAA,EAAAA,EAAAA,EAAAA,CAAGA,CAAC,gBAAgB,sCAC5B/H,MAAO,8BACT,EACA,CACEsK,aAAa,EACbnC,IAAK,qGACLnI,MAAO,iBACT,EACD,CACDmL,YAAa,CACX,CAAEC,QAAS,WAAqBjD,IAAK,0CAA2C,EAChF,CAAEiD,QAAS,UAAoBjD,IAAK,oCAAqC,EACzE,CAAEiD,QAAS,YAAsBjD,IAAK,2CAA4C,EACnF,GACA","sources":["webpack://_N_E/?383a","webpack://_N_E/./components/GatedModal.tsx","webpack://_N_E/./pages/preferred-rates/[accountId].tsx","webpack://_N_E/./utils/constants.ts","webpack://_N_E/./utils/static-pages-data.ts"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/preferred-rates/[accountId]\",\n function () {\n return require(\"private-next-pages/preferred-rates/[accountId].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/preferred-rates/[accountId]\"])\n });\n }\n ","import { useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport classnames from 'classnames';\n\nimport { SecurityDialog } from '@dx-ui/osc-marketing';\n\nexport function GatedModal({ domains }: { domains?: string[] }) {\n const [isVisible, setIsVisible] = useState(Array.isArray(domains) ? domains?.length > 0 : false);\n\n if (!Array.isArray(domains) || domains.length < 1) {\n return null;\n }\n\n return (\n <SecurityDialog\n content={<GatedModalContent domains={domains} onSubmit={() => setIsVisible(false)} />}\n isOpen={isVisible}\n size=\"sm\"\n title=\"Exclusive Offers\"\n />\n );\n}\n\ntype FormData = {\n email: string;\n};\n\nexport function GatedModalContent({\n domains,\n onSubmit,\n}: {\n domains: string[];\n onSubmit: () => void;\n}) {\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm<FormData>();\n\n const handleEmailValidation = (email: string) => {\n return domains.some((domain) => email.toLowerCase().includes(domain.toLowerCase()));\n };\n\n return (\n <>\n {errors.email ? (\n <div id=\"email-error\" className=\"flex justify-around bg-danger-alt p-2\">\n <span className=\"mx-8 text-lg font-bold text-danger\">\n Please enter a valid email or company code to access offers.\n </span>\n </div>\n ) : null}\n <p className=\"p-2 font-sans\">\n Enter your employee email or company code to access exclusive discounts.\n </p>\n <form onSubmit={handleSubmit(onSubmit)} method=\"POST\">\n <label\n aria-label=\"Enter your employee email or company code to access exclusive discounts.\"\n className={classnames('label w-full font-bold', { 'label-error': !!errors.email })}\n htmlFor=\"gated-email\"\n >\n Email Address or Company Code\n <input\n aria-describedby={errors.email ? 'email-error' : undefined}\n aria-invalid={!!errors.email}\n className={classnames('form-input my-2 block', {\n 'form-error': !!errors.email,\n })}\n id=\"gated-email\"\n {...register('email', { required: true, validate: handleEmailValidation })}\n required\n />\n </label>\n\n <button className=\"btn btn-2xl btn-primary mb-4 block w-full\" type=\"submit\">\n Access Offers\n </button>\n </form>\n </>\n );\n}\n","import type { GetServerSidePropsContext } from 'next';\nimport { useRouter } from 'next/router';\nimport { useCallback, useEffect, useState } from 'react';\n\nimport { HeroImage } from '@dx-ui/osc-hero-image';\nimport { DynamicGridWOM } from '@dx-ui/osc-dynamic-grids';\nimport { isBrowser } from '@dx-ui/utilities-is-browser';\nimport { getVisitorId } from '@dx-ui/framework-react-query';\nimport { LocationProvider } from '@dx-ui/framework-location-provider';\nimport type { CpmMappedPage } from '@dx-ui/cpm-sdk';\nimport { useMetrics } from '@dx-ui/cpm-mapping-brands';\nimport { BrandsSearch, generateUrl, mapDataToSpecialRates } from '@dx-ui/osc-brands-search';\nimport type { FormData, SearchUrlParameters } from '@dx-ui/osc-brands-search';\nimport {\n getAssetPath,\n getBaseUrl,\n getBrandRouteParams,\n getBrandSvg,\n isBrandHomePageUrlFormat,\n useSingleInstanceQueryStrings,\n} from '@dx-ui/osc-brands-data';\nimport { Header } from '@dx-ui/osc-header';\nimport { Footer } from '@dx-ui/osc-footer';\nimport { TextBlock } from '@dx-ui/osc-text-block';\nimport { type LoginResponse, useAuth, getGuestFirstName } from '@dx-ui/framework-auth-provider';\nimport { BrandShowcase, ImageHeadliner, ImageHeadlinerItem } from '@dx-ui/osc-marketing';\n\nimport { GatedModal } from '../../components/GatedModal';\nimport { serverSideGetCompanyForPreferredRatesByAccountIdQuery } from '../../generated/react-query';\n\nimport {\n getCommonServerSideFetches,\n getCommonServerSidePostFetches,\n} from '../../utils/common-server-side-fetches';\nimport { getFooterProps, getHeaderProps } from '../../utils/static-pages-data';\nimport { createAccountIdForQuery, searchComponentParams } from '../../utils/static-pages';\nimport { Layout } from '@dx-ui/osc-marketing-layout';\nimport { goUserTypes } from '@dx-ui/osc-brands-header';\nimport { env } from '@dx-ui/framework-env';\nimport { getBrandRefreshProps } from '@dx-ui/framework-theme';\nimport { getAppVersion } from '../../utils/constants';\nimport { BrandComponentThemeInline, OneLinkWrapper } from '@dx-ui/osc-brands-wrappers';\n\nfunction handleSearchRedirect(searchUrlParameters: SearchUrlParameters) {\n const deepLinkUrl = generateUrl(searchUrlParameters);\n\n if (isBrowser && deepLinkUrl) {\n window.location.assign(deepLinkUrl);\n }\n}\n\nfunction removeUndefinedes<T>(data: T): T {\n return JSON.parse(JSON.stringify(data));\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Impossible<K extends keyof any> = { [P in K]: never };\ntype NoExtraProperties<T, U extends T = T> = U & Impossible<Exclude<keyof U, keyof T>>;\n\nexport async function getServerSideProps(ctx: GetServerSidePropsContext) {\n try {\n const commonFetches = await getCommonServerSideFetches(ctx);\n if ('notFound' in commonFetches) return commonFetches;\n const { queryClient, localeCode, translations, oneLinkProps, featureTogglesConfigs } =\n commonFetches;\n const featureToggles = featureTogglesConfigs?.featureToggles || [];\n const accountId = createAccountIdForQuery(ctx.resolvedUrl, ctx.query);\n\n const companyData = await serverSideGetCompanyForPreferredRatesByAccountIdQuery(queryClient, {\n accountid: accountId,\n language: localeCode,\n });\n\n const partner = companyData?.altCorporateAccount?.partner;\n\n const partnerBrandShowcaseItems =\n partner?.brandShowcase?.items?.map(({ brandCode, label, shortDescription }) => ({\n code: brandCode ?? '',\n name: label ?? '',\n shortDescription: shortDescription ?? '',\n })) ?? [];\n\n const textHeadliner = partner?.textHeadliner;\n const imageHeadlinerItems: Array<\n NoExtraProperties<React.ComponentProps<typeof ImageHeadlinerItem>>\n > = textHeadliner?.headline\n ? [\n {\n id: 'prefererred-rates-image-headliner-item',\n headline: textHeadliner?.headline ?? '',\n imageAltText: undefined,\n imageUrl: undefined,\n cmsTranslationClasses: undefined,\n link: textHeadliner?.links?.[0]?.linkUrl\n ? {\n adaDescription: textHeadliner?.links?.[0]?.adaDescription ?? undefined,\n isNewWindow: textHeadliner?.links?.[0]?.isNewWindow ?? undefined,\n label: textHeadliner?.links?.[0]?.linkLabel ?? undefined,\n url: textHeadliner?.links?.[0]?.linkUrl,\n }\n : undefined,\n },\n ]\n : [];\n\n const masthead = partner?.masthead;\n const link = masthead?.links?.[0];\n\n let heroImage: NoExtraProperties<React.ComponentProps<typeof HeroImage>> | null = {\n headline: masthead?.headline ?? '',\n longDescription: masthead?.description,\n shortDescription: masthead?.description ?? '',\n imageAltText: masthead?.imageCompound?.[0]?.altText ?? '',\n aspectRatios: { desktop: '18:5' as const, mobile: '21:9' as const },\n captionData: {},\n badgeImageUrl: null,\n badgeImageAltText: '',\n alignContent: 'left' as const,\n brandComponentTheme: undefined,\n isAnimated: false,\n hasHorizontalLine: false,\n link: link\n ? {\n adaDescription: link.adaDescription ?? '',\n label: link.linkLabel ?? '',\n url: link.linkUrl ?? '',\n isNewWindow: link.isNewWindow ?? false,\n }\n : null,\n image: {\n desktopUrl:\n masthead?.imageCompound[0]?.image?.variants?.fullWidth?.find?.(\n ({ size }) => size === 'md'\n )?.cdnLink ?? '',\n mobileUrl:\n masthead?.imageCompound[0]?.image?.variants?.fullWidth?.find?.(\n ({ size }) => size === 'sm'\n )?.cdnLink ?? '',\n },\n };\n heroImage = heroImage.image.desktopUrl ? heroImage : null;\n\n const { logoUrl } = partner!;\n const logoAltText = partner?.logo?.[0]?.altText ?? '';\n\n const { headline, longDescription } = partner!;\n let textBlock: NoExtraProperties<React.ComponentProps<typeof TextBlock>> | null = {\n isAnimated: false,\n textAlign: 'center' as const,\n data: [\n ...(headline\n ? [{ kind: 'heading' as const, content: '## ' + headline.replace(/^#*/g, '') }]\n : []),\n ...(longDescription ? [{ kind: 'description' as const, content: longDescription }] : []),\n ],\n };\n textBlock = textBlock?.data?.length ? textBlock : null;\n\n const threeSixNineGrid = partner?.threeSixNineGrid;\n let grid: NoExtraProperties<React.ComponentProps<typeof DynamicGridWOM>> | null = {\n id: 'threeSixNineWOMGrid-0',\n imageAspectRatio: '3:2' as const,\n isAnimated: false,\n listSubheading: undefined,\n brandComponentTheme: undefined,\n listHeadline: threeSixNineGrid?.headline ?? '',\n link: {\n adaDescription: threeSixNineGrid?.links?.[0]?.adaDescription ?? '',\n isNewWindow: threeSixNineGrid?.links?.[0]?.isNewWindow ?? false,\n label: threeSixNineGrid?.links?.[0]?.linkLabel ?? '',\n url: threeSixNineGrid?.links?.[0]?.linkUrl ?? '',\n },\n\n items:\n threeSixNineGrid?.items?.map((item) => {\n const image = item.imageCompound?.[0]?.image?.variants?.threeSixNineGrid.find(\n ({ size }) => size === 'md'\n );\n\n const expansionImage =\n item.imageCompound?.[0]?.image?.variants?.threeSixNineExpansionPanel.find(\n ({ size }) => size === 'md'\n );\n\n return {\n id: item._id ?? '',\n $ref: '',\n headline: item.headline ?? '',\n content: item.shortDescription ?? '',\n segmentIds: item.segmentIds,\n caption: '',\n labelTxt: '',\n cmsTranslationClasses: undefined,\n\n imageUrl: image?.cdnLink ?? '',\n imageAltTxt: item.imageCompound?.[0]?.altText ?? '',\n modalImageUrl: expansionImage?.cdnLink ?? '',\n\n link: {\n adaDescription: item?.link?.adaDescription ?? '',\n isNewWindow: item?.link?.isNewWindow ?? false,\n label: item?.link?.linkLabel ?? '',\n url: item?.link?.linkUrl ?? '',\n },\n };\n }) ?? [],\n };\n grid = grid.items.length ? grid : null;\n\n const mappedPage: CpmMappedPage = {\n brandCode: 'WW' as const,\n pathname: ctx.resolvedUrl,\n seoImage: heroImage?.image?.desktopUrl ?? '',\n articleTitle: '',\n hidePageFooter: false,\n hidePageHeader: false,\n isHeaderH1: false,\n languageCode: 'en',\n pageType: 'brandHomepage',\n seo: {\n hideSearchEngine: true,\n metaKeywords:\n 'hotels,hotel reservations,hotel discount,leisure hotels,business hotels,www.hilton.com,Hilton Hotels & Resorts',\n pageHeading: '',\n pageTitle: `Hilton | ${partner?.corporateId ?? ''} Preferred Rates`,\n metaDescription: partner?.longDescription ?? '',\n },\n analyticsTagging: {\n pageDetailOne: partner?.category ?? '',\n pageDetailTwo: accountId,\n pageDetailThree: 'Terms',\n primaryCategory: 'Brand',\n adobePageType: 'Corporate Advantage',\n trackEventType: 'brandPageView',\n brandCode: 'HI',\n },\n };\n\n const { brandData, brandShowcaseData } = await getCommonServerSidePostFetches(\n queryClient,\n localeCode,\n 'HI',\n partnerBrandShowcaseItems.length > 0\n );\n\n const brandShowcaseMap: Record<string, Exclude<typeof brandShowcaseData, undefined>[number]> =\n brandShowcaseData?.reduce((acc, item) => {\n return {\n ...acc,\n [item.code]: item,\n };\n }, {}) ?? {};\n\n const brandShowcaseItems = partnerBrandShowcaseItems.length\n ? partnerBrandShowcaseItems.map((item) => {\n const brand = brandShowcaseMap[item.code];\n\n return {\n ...item,\n code: item.code,\n name: brand?.name ?? '',\n url: brand?.url ?? '',\n label: brand?.name ? `Visit ${brand.name}` : undefined,\n };\n })\n : undefined;\n\n const brandCode = 'WW';\n const props = removeUndefinedes({\n ...translations,\n ...oneLinkProps,\n env,\n localeCode,\n brandCode,\n brandData,\n companyData,\n brandShowcaseItems,\n isPortfolioHeaderTestActive: false,\n featureToggles,\n imageHeadlinerItems,\n heroImage,\n textBlock,\n grid,\n mappedPage,\n logoUrl,\n logoAltText,\n searchComponentParams,\n ...getBrandRefreshProps({ featureToggles, brandCode }),\n });\n\n return { props };\n } catch (error) {\n //eslint-disable-next-line no-console\n console.error(`Something went wrong when retrieving data for ${ctx.req.url}`);\n //eslint-disable-next-line no-console\n console.error(error);\n return { notFound: true };\n }\n}\n\ntype Props = Exclude<Awaited<ReturnType<typeof getServerSideProps>>['props'], undefined>;\n\nexport default function PreferredRatesPage({\n brandCode,\n brandData,\n brandShowcaseItems,\n localeCode,\n imageHeadlinerItems,\n heroImage,\n textBlock,\n grid,\n mappedPage,\n logoUrl,\n logoAltText,\n companyData,\n searchComponentParams,\n}: Props) {\n const [trackSignIn, setTrackSignIn] = useState(false);\n const router = useRouter();\n const { authClient, login, logout, guestInfo, isLoading, isAuthenticated } = useAuth();\n\n if (!authClient) {\n throw new Error('Unable to load authClient');\n }\n const sessionId = getVisitorId();\n\n const { language: languageCode } = new Intl.Locale(localeCode);\n const baseAppUrl = getBaseUrl(`${languageCode}${router.asPath}`);\n const {\n brandPath: fullBrandPath,\n auxPageSlug,\n brandSlug,\n } = getBrandRouteParams(router.asPath, languageCode);\n\n const metrics = useMetrics(localeCode, fullBrandPath, mappedPage, brandData, false);\n\n const {\n cid = '',\n awc = '',\n dclid = '',\n gclid = '',\n wtmcid = '',\n } = useSingleInstanceQueryStrings();\n\n const onSearchSubmit = (formData: FormData, url: string) => {\n setTimeout(\n () =>\n handleSearchRedirect({\n formData,\n awc,\n cid,\n dclid,\n gclid,\n isGroupSearch: false,\n brandCode,\n languageCode,\n url,\n wtmcid,\n baseAppUrl,\n }),\n 0\n );\n };\n\n const { additionalQS, specialRates } = mapDataToSpecialRates(searchComponentParams, companyData);\n const { pathname } = new URL(baseAppUrl);\n\n const onSignInAttempt = useCallback(\n (data: LoginResponse): Promise<void> => {\n if (data) {\n setTrackSignIn(true);\n return login(data);\n }\n return Promise.reject(new Error('Failed to login due to no data on response'));\n },\n [login, setTrackSignIn]\n );\n\n const onSignOut = useCallback((): Promise<void> => logout(), [logout]);\n\n useEffect(() => {\n if (trackSignIn && !isLoading) {\n // We only want this to trigger once when a user has successfully signed in\n setTrackSignIn(false);\n const availableGoUserTypes: string[] | null = guestInfo?.hhonors?.packages?.filter\n ? guestInfo?.hhonors?.packages\n ?.filter((pack) => pack?.packageName && goUserTypes.includes(pack.packageName))\n ?.map((pack) => pack && pack.packageName)\n : null;\n\n metrics.trackUserLoggedIn?.([\n {\n hhonorsNumber: guestInfo?.hhonors?.hhonorsNumber ?? '',\n\n tierName: guestInfo?.hhonors?.summary?.tierName ?? '',\n points: guestInfo?.hhonors?.summary?.totalPointsFmt ?? '',\n goUserTypes: availableGoUserTypes,\n },\n ]);\n }\n }, [guestInfo, isLoading, trackSignIn, metrics]);\n\n return (\n <>\n <Layout\n assetPath={getAssetPath()}\n isBrandHomePage={isBrandHomePageUrlFormat(pathname, brandCode)}\n brandSvgPath={getBrandSvg(brandCode)}\n appVersion={getAppVersion()}\n brandData={brandData ?? undefined}\n top={\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline\n componentParams={{}}\n brandCode={brandCode}\n componentClassName=\"header\"\n >\n <Header\n {...getHeaderProps()}\n onSignInAttempt={onSignInAttempt}\n onSignOut={onSignOut}\n user={\n isAuthenticated && guestInfo\n ? {\n name: getGuestFirstName({ guestInfo }),\n honorsTier: guestInfo?.hhonors?.summary?.tierName || '',\n honorsPoints: guestInfo?.hhonors?.summary?.totalPoints || 0,\n hhonorsNumber: guestInfo?.hhonors?.hhonorsNumber || '',\n honorsPointsFmt: guestInfo?.hhonors?.summary?.totalPointsFmt || '',\n }\n : undefined\n }\n />\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n }\n bottom={\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline componentParams={{}} brandCode={brandCode}>\n <Footer {...getFooterProps()} />\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n }\n brandCode={brandCode}\n localeCode={localeCode}\n baseAppUrl={baseAppUrl}\n fullBrandPath={fullBrandPath}\n seo={mappedPage.seo}\n articleTitle={mappedPage.articleTitle}\n seoImage={mappedPage.seoImage}\n shouldIncludeBackToTopButton={true}\n >\n <div>\n <OneLinkWrapper>\n <LocationProvider>\n <BrandComponentThemeInline\n componentParams={searchComponentParams}\n brandCode={brandCode}\n >\n {/*\n * Add a key to the search component in Editor mode to force a rerender\n * when special rates have changed. This is to fix a memorisation bug in the\n * Search component in dx-ui.\n */}\n <BrandsSearch\n brandCode={brandCode}\n brandSlug={brandSlug}\n baseAppUrl={baseAppUrl}\n auxPageSlug={auxPageSlug}\n isBrandRoute={true}\n fullBrandPath={fullBrandPath}\n isGroupSearch={false}\n isDayUse={false}\n defaultLanguage=\"en\"\n languageCode={localeCode}\n autocompleteUri={env('DX_AUTOCOMPLETE_URI')}\n additionalQSParameters={additionalQS}\n specialRates={specialRates}\n sessionId={sessionId ?? ''}\n onSearchSubmit={onSearchSubmit}\n isPartnerBrand={false}\n />\n </BrandComponentThemeInline>\n </LocationProvider>\n </OneLinkWrapper>\n </div>\n\n {imageHeadlinerItems.length ? (\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline componentParams={{}} brandCode={brandCode}>\n <ImageHeadliner label=\"imageHeadliner\">\n {imageHeadlinerItems.map((props, index) => (\n <ImageHeadlinerItem {...props} key={props.id} index={index} />\n ))}\n </ImageHeadliner>\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n ) : null}\n\n {heroImage ? (\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline componentParams={{}} brandCode={brandCode}>\n <HeroImage {...heroImage} />\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n ) : null}\n\n {textBlock ? (\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline componentParams={{}} brandCode={brandCode}>\n <div className=\"container\">\n <div\n className=\"flex flex-col items-center justify-center pt-5 md:flex-row md:text-left\"\n data-testid=\"logoAndTextBlockContainer\"\n >\n {logoUrl ? (\n <>\n {/*We lack any of the metadata next/image requires to render this image, just use an img tag */}\n <div className=\"flex w-[30%] items-center justify-center\">\n <img className=\"\" src={logoUrl} alt={logoAltText} />\n </div>\n <TextBlock {...textBlock} textAlign=\"left\" />\n </>\n ) : (\n <TextBlock {...textBlock} />\n )}\n </div>\n </div>\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n ) : null}\n\n {grid ? (\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline\n componentClassName=\"threeSixNineWOMGrid\"\n componentParams={{ display: 'wom' }}\n brandCode={brandCode}\n >\n <div className=\"pt-6\">\n <DynamicGridWOM {...grid} />\n </div>\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n ) : null}\n\n {brandShowcaseItems ? (\n <div>\n <OneLinkWrapper>\n <BrandComponentThemeInline componentParams={{}} brandCode={brandCode}>\n <BrandShowcase\n id=\"brand-showcase\"\n onItemClicked={undefined}\n items={brandShowcaseItems ?? []}\n /*these should be hard coded (according to dx-hotels-ui/src/components/brand-showcase/index.tsx)*/\n logoUrl=\"/modules/assets/svgs/logos/brand\"\n baseUrl=\"/en\"\n />\n </BrandComponentThemeInline>\n </OneLinkWrapper>\n </div>\n ) : null}\n </Layout>\n <GatedModal domains={companyData?.altCorporateAccount?.domains} />\n </>\n );\n}\n","import { env } from '@dx-ui/framework-env';\n\nexport const getAppVersion = () => env('APP_VER', 'dx-brands-ui:0');\n","import type { HeaderProps } from '@dx-ui/osc-header';\nimport type { Footer } from '@dx-ui/osc-footer';\nimport { env } from '@dx-ui/framework-env';\n\nexport const getHeaderProps = (): Omit<HeaderProps, 'onSignInAttempt' | 'onSignOut'> => ({\n isFluid: false,\n brand: { code: 'WW', name: 'Hilton For the Stay', url: `${env('OHW_BASE_URL')}en/` },\n megaNavLinks: [\n {\n label: 'Hotels & Resorts',\n link: { url: '', isNewWindow: false, showNewWindowIcon: false },\n subMenu: [\n {\n label: 'Locations',\n link: {\n url: `${env(\n 'OHW_BASE_URL'\n )}en/locations/?cid=OH,WW,LocationsNav,MULTIPR,Header,Home,Brand-Ibm`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Brands',\n link: {\n url: `${env('OHW_BASE_URL')}en/brands/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Travel Inspiration',\n link: {\n url: `${env('OHW_BASE_URL')}en/travel/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'All-Inclusive',\n link: {\n url: `${env('OHW_BASE_URL')}en/all-inclusive/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Resorts',\n link: {\n url: `${env('OHW_BASE_URL')}en/resorts/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n ],\n },\n {\n label: 'Hilton Honors',\n link: { url: '', isNewWindow: false, showNewWindowIcon: false },\n subMenu: [\n {\n label: 'About Hilton Honors',\n link: {\n url: `${env('OHW_BASE_URL')}en/hilton-honors/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Join Now',\n link: {\n url: `${env('OHW_BASE_URL')}en/hilton-honors/join/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Member Benefits',\n link: {\n url: `${env('OHW_BASE_URL')}en/hilton-honors/member-benefits/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Hilton Honors Points',\n link: {\n url: `${env('OHW_BASE_URL')}en/hilton-honors/points/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n ],\n },\n {\n label: 'Offers',\n link: {\n url: `${env('OHW_BASE_URL')}en/offers/?cid=OH,WW,OffersNav,MULTIPR,Header,Home,Brand-Ibm`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Meetings & Events',\n link: { url: '', isNewWindow: false, showNewWindowIcon: false },\n subMenu: [\n {\n label: 'All Events',\n link: {\n url: `${env(\n 'OHW_BASE_URL'\n )}en/events/?cid=OH,WW,MeetingsEventsNav,MULTIPR,Header,Home,Brand-Ibm`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Group Travel',\n link: {\n url: `${env('OHW_BASE_URL')}en/events/groups/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Meetings & Conferences',\n link: {\n url: `${env('OHW_BASE_URL')}en/events/meetings/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Weddings',\n link: {\n url: `${env('OHW_BASE_URL')}en/events/weddings/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Celebrations',\n link: {\n url: `${env('OHW_BASE_URL')}en/events/celebrations/`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n ],\n },\n {\n label: 'Credit Cards',\n link: {\n url: `${env(\n 'OHW_BASE_URL'\n )}en/hilton-honors/credit-cards/?cid=OH,WW,CobrandNav,MULTIPR,Header,Home,Brand-Ibm`,\n isNewWindow: false,\n showNewWindowIcon: false,\n },\n },\n {\n label: 'Hilton Getaways',\n link: {\n url: 'https://www.hiltongetaways.com/?cid=OH,WW,GetawaysNav,MULTIPR,Header,Home,Brand-Ibm',\n isNewWindow: true,\n showNewWindowIcon: true,\n },\n },\n {\n label: 'Hilton Grand Vacations',\n link: {\n url: 'https://www.hiltongrandvacations.com/en/discover-membership/the-hgv-difference',\n isNewWindow: true,\n showNewWindowIcon: true,\n },\n },\n ],\n loginOptions: {\n options: {\n showCreatePassword: true,\n forgetInfoLink: {\n url: `${env('OHW_BASE_URL')}en/hilton-honors/login/forgot-information/`,\n },\n secureInfoLink: {\n url: `${env('OHW_BASE_URL')}en/p/global-privacy-statement`,\n },\n joinLink: { url: `${env('OHW_BASE_URL')}en/hilton-honors/join/`, underline: false },\n },\n },\n});\n\nexport const getFooterProps = (): Footer => ({\n contactPhoneLink: { url: 'tel:+1-800-445-8667', label: '+1-800-HILTONS' },\n links: [\n { isNewWindow: false, url: 'https://stories.hilton.com', label: 'Media' },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/corporate/development/`,\n label: 'Development',\n },\n { isNewWindow: false, url: 'https://jobs.hilton.com', label: 'Careers' },\n { isNewWindow: false, url: `${env('OHW_BASE_URL')}en/p/sitemap/`, label: 'Site Map' },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/p/global-privacy-statement/`,\n label: 'Global Privacy Statement',\n },\n { isNewWindow: false, url: 'https://www.buyhiltongiftcards.com/', label: 'Hilton Gift Card' },\n {\n isNewWindow: false,\n url: `${env(\n 'OHW_BASE_URL'\n )}en/travel/?cid=OH,MB,THFooter,MULTIPR,Tile,AboutUs,SingleLink,i81797`,\n label: 'Travel Inspiration',\n },\n {\n adaDescription: '',\n isNewWindow: false,\n url: `${env(\n 'OHW_BASE_URL'\n )}en/brands/?cid=OH,MB,OurBrandsFooter,MULTIPR,Aux,Home,SingleLink,i84866`,\n label: 'Our Brands',\n },\n { isNewWindow: false, url: 'https://help.hilton.com/s/', label: 'Customer Support' },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/p/accessibility/`,\n label: 'Web Accessibility',\n },\n {\n adaDescription: '',\n isNewWindow: true,\n url: 'https://esg.hilton.com/',\n label: 'Corporate Responsibility',\n },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/hilton-honors/terms/`,\n label: 'Hilton Honors Discount Terms & Conditions',\n },\n {\n isNewWindow: true,\n url: 'https://cr.hilton.com/wp-content/uploads/2021/06/Hilton-Slavery-and-Trafficking-Statement-2020.pdf',\n label: 'Modern Slavery and Human Trafficking',\n },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/hilton-honors/personal-data-requests/`,\n label: 'Do Not Sell or Share My Information',\n },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/hilton-honors/personal-data-requests/`,\n label: 'Personal Data Requests',\n },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/p/site-usage-agreement/`,\n label: 'Site Usage Agreement',\n },\n {\n isNewWindow: false,\n url: `${env('OHW_BASE_URL')}en/p/partner-accommodations-terms/`,\n label: 'Partner Accommodations Terms',\n },\n {\n isNewWindow: false,\n url: 'https://www.hiltongetaways.com/?cid=OH,MB,HiltonGetawaysFooter,MultiBR,Aux,Home,SingleLink,i81681,',\n label: 'Hilton Getaways',\n },\n ],\n socialLinks: [\n { channel: 'Facebook' as const, url: 'https://www.facebook.com/hiltonnewsroom/' },\n { channel: 'Twitter' as const, url: 'https://twitter.com/hiltonnewsroom' },\n { channel: 'Instagram' as const, url: 'https://www.instagram.com/hiltonnewsroom/' },\n ],\n});\n"],"names":["GatedModal","domains","useState","Array","isArray","length","isVisible","setIsVisible","SecurityDialog","content","GatedModalContent","onSubmit","isOpen","size","title","useForm","register","handleSubmit","formState","errors","email","div","id","className","span","p","form","method","label","aria-label","classnames","htmlFor","input","aria-describedby","undefined","aria-invalid","required","validate","handleEmailValidation","some","domain","toLowerCase","includes","button","type","PreferredRatesPage","guestInfo","companyData","brandCode","brandData","brandShowcaseItems","localeCode","imageHeadlinerItems","heroImage","textBlock","grid","mappedPage","logoUrl","logoAltText","searchComponentParams","trackSignIn","setTrackSignIn","router","useRouter","useAuth","authClient","login","logout","isLoading","isAuthenticated","sessionId","getVisitorId","language","Intl","Locale","baseAppUrl","getBaseUrl","languageCode","asPath","getBrandRouteParams","brandPath","auxPageSlug","brandSlug","metrics","useMetrics","fullBrandPath","useSingleInstanceQueryStrings","cid","awc","dclid","gclid","wtmcid","mapDataToSpecialRates","additionalQS","specialRates","URL","pathname","onSignInAttempt","useCallback","data","Promise","reject","onSignOut","useEffect","availableGoUserTypes","hhonors","packages","filter","pack","packageName","goUserTypes","map","trackUserLoggedIn","hhonorsNumber","tierName","summary","points","totalPointsFmt","Layout","assetPath","getAssetPath","isBrandHomePage","isBrandHomePageUrlFormat","brandSvgPath","getBrandSvg","appVersion","getAppVersion","top","OneLinkWrapper","BrandComponentThemeInline","componentParams","componentClassName","Header","getHeaderProps","user","name","getGuestFirstName","honorsTier","honorsPoints","totalPoints","honorsPointsFmt","bottom","Footer","getFooterProps","seo","articleTitle","seoImage","shouldIncludeBackToTopButton","LocationProvider","BrandsSearch","isBrandRoute","isGroupSearch","isDayUse","defaultLanguage","autocompleteUri","env","additionalQSParameters","onSearchSubmit","formData","url","setTimeout","handleSearchRedirect","deepLinkUrl","generateUrl","searchUrlParameters","isBrowser","window","location","assign","isPartnerBrand","ImageHeadliner","props","index","ImageHeadlinerItem","key","HeroImage","data-testid","img","src","alt","TextBlock","textAlign","display","DynamicGridWOM","BrandShowcase","onItemClicked","items","baseUrl","altCorporateAccount","isFluid","brand","code","megaNavLinks","link","isNewWindow","showNewWindowIcon","subMenu","loginOptions","options","showCreatePassword","forgetInfoLink","secureInfoLink","joinLink","underline","contactPhoneLink","links","adaDescription","socialLinks","channel"],"sourceRoot":"","ignoreList":[]}